08cb9b2f2fbffba905d87ea1e823d02565226574,Minecraft/src/main/java/com/microsoft/Malmo/Utils/BlockDrawingHelper.java,BlockDrawingHelper,DrawPrimitive,#DrawBlock#World#,100

Before Change


     */
    private static void DrawPrimitive( DrawBlock b, World w ) throws Exception
    {
        IBlockState blockType = MinecraftTypeHelper.ParseBlockType( b.getType().value() );
        if( blockType == null )
            throw new Exception("Unrecognised block type: "+b.getType().value());
        BlockPos pos = new BlockPos( b.getX(), b.getY(), b.getZ() );
        blockType = applyModifications(blockType, b.getColour(),  b.getFace(), b.getVariant());
        w.setBlockState( pos, blockType );
        applyTileEntityProps(pos, w, b.getType(), b.getColour(), b.getFace(), b.getVariant());
    }

    public static IBlockState applyModifications(IBlockState blockType, Colour colour, Facing facing, Variation variant )

After Change


     */
    private void DrawPrimitive( DrawBlock b, World w ) throws Exception
    {
        XMLBlockState blockType = new XMLBlockState(b.getType(), b.getColour(),  b.getFace(), b.getVariant());
        if (!blockType.isValid())
            throw new Exception("Unrecogised item type: " + b.getType().value());
        BlockPos pos = new BlockPos( b.getX(), b.getY(), b.getZ() );
        setBlockState(w, pos, blockType );